package cn.com.dbappsecurity.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.com.dbappsecurity.entity.Log;

public interface LogMapper {

	public int insert(Log operlog)throws Exception;
	
	public List<Log> search(
			@Param("dateFrom")String dateFrom,
			@Param("dateTo")String dateTo,
			@Param("status")Integer status,
			@Param("username")String username,
			@Param("ip")String ip,
			@Param("event")String event,
			@Param("limit")int limit,
			@Param("num")int num,
			@Param("sort")String sort,
			@Param("order")String order)throws Exception;
	
	public int searchCount(
			@Param("dateFrom")String dateFrom,
			@Param("dateTo")String dateTo,
			@Param("status")Integer status,
			@Param("username")String username,
			@Param("ip")String ip,
			@Param("event")String event)throws Exception;
	
}
